package com.demo.afternoon;

import java.util.ArrayList;
import java.util.Collections;
import java.util.function.Consumer;

/**
 * @ClassName 工具类
 * @Description TODO
 * @Author tianqinglong
 * @Date 15:07 2022/7/11
 * @Version 1.0
 **/
public class 工具类 {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(4);
        list.add(2);
        list.add(3);
        Collections.sort(list);
        Collections.reverse(list);
        list.stream().forEach(System.out::print);
        System.out.println();
        Collections.shuffle(list);
        list.stream().forEach(System.out::print);
    }
}
